package cn.tedu.egmybatis1.mapper;

import cn.tedu.egmybatis1.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProductMapper {
    @Insert("INSERT INTO product(id,title,price,stock) " +
            "VALUES (#{id},#{title},#{price},#{stock})")
    void insertProduct(Product product);
}
